﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.teradata;

namespace SharpSqlAnalyzer.stmt.teradata
{
	// Token: 0x020000C8 RID: 200
	public class TTeradataAbort : TCustomSqlStatement
	{
		// Token: 0x17000153 RID: 339
		// (get) Token: 0x0600073A RID: 1850 RVA: 0x00300499 File Offset: 0x002FE699
		// (set) Token: 0x0600073B RID: 1851 RVA: 0x003004A1 File Offset: 0x002FE6A1
		public string abortMessage
		{
			get
			{
				return this._abortMessage;
			}
			set
			{
				this._abortMessage = value;
			}
		}

		// Token: 0x0600073C RID: 1852 RVA: 0x003004AA File Offset: 0x002FE6AA
		public TTeradataAbort(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstteradataabort;
		}

		// Token: 0x0600073D RID: 1853 RVA: 0x003004C0 File Offset: 0x002FE6C0
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TAbortSqlNode tabortSqlNode = (TAbortSqlNode)this.rootNode;
			this._abortMessage = tabortSqlNode.abortMessage;
			return 0;
		}

		// Token: 0x0600073E RID: 1854 RVA: 0x003004F8 File Offset: 0x002FE6F8
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600073F RID: 1855 RVA: 0x00300508 File Offset: 0x002FE708
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011DA RID: 4570
		private string _abortMessage;
	}
}
